<!--
 * @Author: Rachel 943701297@qq.com
 * @Date: 2022-09-03 13:52:17
 * @LastEditors: Rachel 943701297@qq.com
 * @LastEditTime: 2022-09-03 23:37:30
 * @FilePath: \JSCode\es6\index.html
 * @Description: 
 * 
 * Copyright (c) 2022 by Rachel 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>module学习</title>
  </head>
  <body>
    <script type="module">
      // import * as Foo from "./modules/index.js";
      // import a from "./modules/index.js";
      // console.log(a);
      // import * as f from "./modules/index.js";
      // console.log(f);

      let obj = {};
      function changeValue(obj) {
        obj.name = "ConardLi";
        obj = { name: "code秘密花园" };
        console.log(obj);
      }
      changeValue(obj);
      console.log(obj);
      console.log(obj.name); // ConardLi
    </script>
  </body>
</html>
